/**
 * Class: Dot2D
 *
 * Purpose: 
 *
 * Created: Jan 27, 2010 @ 9:37:10 AM
 * @author Ken Scott
 */
package org.openfantasia.ps.shape;

import org.openfantasia.ps.particle.Particle;
import org.openfantasia.ui.PFrame;

public class Cylinder extends Shape {

	private int faces = 8;

	private boolean includeTop = true;

	private boolean includeBottom = true;


	public Cylinder(PFrame frame) {
		super(frame);
	}


	public Cylinder(PFrame frame, int faces) {
		super(frame);
		this.faces = faces;
	}


	public Cylinder(PFrame frame, int faces, boolean includeEnds) {
		super(frame);
		this.faces = faces;
		this.includeTop = includeEnds;
		this.includeBottom = includeEnds;
	}


	public Cylinder(PFrame frame, int faces, boolean includeTop, boolean includeBottom) {
		super(frame);
		this.faces = faces;
		this.includeTop = includeTop;
		this.includeBottom = includeBottom;
	}


	public void drawShape(Particle particle) {
		frame.cylinder(1, faces, includeTop, includeBottom);
	}
}